<?php global $ubi?>
<?php
	$location = 'home';
	if (array_key_exists('location', $getVars)) {
		$location = $getVars['location'];
	} 
?>
<ul class="menu">
	<li class="menu-item <?php echo ($location == 'home')?'current-menu-item':'' ?>">
    	<a href="index.php">Trang Chủ</a>
    </li>
    <li class="menu-item <?php echo ($location == 'map')?'current-menu-item':'' ?>">
    	<a href="index.php?home&view=map">Bản đồ</a>
    </li>
    <li class="menu-item <?php echo ($location == 'providers')?'current-menu-item':'' ?>">
    	<a href="index.php?view&type=providers">Địa Điểm</a>
    </li>
    <li class="menu-item <?php echo ($location == 'items')?'current-menu-item':'' ?>">
    	<a href="index.php?view&type=items">Hàng Hóa</a>
    </li>
    <?php 
    	if (isset($_SESSION['userid'])) {
    ?>   
    <li class="menu-item <?php echo ($location == 'profile')?'current-menu-item':'' ?>">
    	<a href="index.php?view&type=user&userid=<?php echo $_SESSION['userid']?>">Trang Cá Nhân</a>
    </li>                      
    <?php
    	} 
    ?>
    <li class="menu-item <?php echo ($location == 'posts')?'current-menu-item':'' ?>">
    	<a href="index.php?view&type=posts">Bài Viết</a>
    </li>
</ul>